package com.itheima.spring;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @program: design
 * @description: '
 * @author: zhanghz001
 * @create: 2020-11-26 15:52
 **/
public class MessageEventListener implements ApplicationListener<ApplicationEvent> {
    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        System.out.println("监听到了对应事件 : " + applicationEvent.getClass().getName());
    }
}
